package service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.model.admin.dtos.NewsAuthDto;
import com.usian.model.common.dtos.ResponseResult;
import com.usian.model.media.dtos.WmNewsDto;
import com.usian.model.media.dtos.WmNewsPageReqDto;
import com.usian.model.media.pojos.WmNews;

import java.util.List;

public interface WmNewsService extends IService<WmNews> {
    ResponseResult findPage(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto, Integer status);

    ResponseResult findByIdNews(Integer id);

    ResponseResult updateStatusAndReason(WmNews wmNews);

    /**
     * 查询需要发布的文章id列表
     * @return
     */
    List<Integer> findRelease();
    public ResponseResult findList(NewsAuthDto dto);
}
